@extends('Admin.layout.layout')
@section('content')

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">版块添加</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
@if (count($errors) > 0 )
    <div class="alert alert-danger">
    @foreach ($errors->all() as $error)
        <li>{{ $error }}</li>
    @endforeach
    </div>
@endif    
<center>
<div style="width:600px">
<form action="{{url('/admin/section/insert')}}" method="post">
<div class="form-group">
    <label>分区选择</label>
    <select name="pid" class="form-control">
        @foreach($parts as $k=>$v)
        <option value= "{{$v->id}}" >{{$v->partname}}</option>
        @endforeach
    </select>
</div>
<div class="form-group">
    <label>版块名</label>
    <input name="sectionname" class="form-control" placeholder="版块名称">
</div>
<div class="form-group">
    <label>状态</label>
    <select class="form-control" name="status">
        <option value="1">不显示</option>
        <option value="2">显示</option>
    </select>
</div>
{{ csrf_field() }}
<button class="btn btn-primary btn-lg btn-block">提交</button>
</form>
</div>
</center>
@endsection